﻿#ifndef PST_GRAPH3DSETTINGS_H
#define PST_GRAPH3DSETTINGS_H

#include <QWidget>
#include "T_BasePage.h"

class ElaTabWidget;
class ElaLineEdit;
class ElaComboBox;

namespace pst
{
    class Graph3DSettings : public T_BasePage
    {
        Q_OBJECT
    public:
        Graph3DSettings(QWidget* parent = nullptr);
        ~Graph3DSettings();
        //signals:
    public:
        void setScalarBarTitleName(const QString& titleName);
        QString getScalarBarTitleName();

        void setScalarBarMinMaxValue(double minValue, double maxValue);
        void getScalarBarMinMaxValue(double& minValue, double& maxValue);
    private:
        void addTopTabPivotUI();
        void addDataPageUI();
        void addShowPageUI();

    signals:
        void signal_scalarBarTitleChanged(const QString& title);
        // 修改字体
        void signal_scalarBarFontTypeChanged(QString fontType);
        void signal_scalarBarFontSizeChanged(int fontSize);
        void signal_scalarBarMinValueChanged(double minValue);
        void signal_scalarBarMaxValueChanged(double maxValue);

    private:
        ElaTabWidget* m_tabWidget;
        /// =============UI组件=============
        /// 第一页内容
        QWidget* m_page1CentralWidget;
        QVBoxLayout* _page1Layout;
        int _titleFontSize;



        /// 第一页内容
        QWidget* m_page2CentralWidget;
        QVBoxLayout* _page2Layout;
        ElaLineEdit* m_minValueEditor;
        ElaLineEdit* m_maxValueEditor;
        ElaComboBox* m_fontChosenComboBox;
        ElaComboBox* m_fonSizeComboBox;
        ElaLineEdit* m_scalarBarTitleEditor;
    };

}

#endif
